<script type="text/javascript">
    {literal}
    $(document).ready(function() {
        $("#username").focus();
    });
    {/literal}
</script>
{include $data.pathToError}
<form class="loginForm" action="{$data.root}" method="post" onsubmit="return checkLogin($('#username').val(),$('#password').val())">
    <h2>Login page</h2>
    <br/>
    <br/>
    <table>
        <tr>
            <td><label for="username">Username</label></td>
            <td><input name="username" id="username" type="text" value="" /></td>
        </tr>
        <tr>
            <td><label for="password">Password</label></td>
            <td><input name="password" id="password" type="password" value="" /></td>
        </tr>
        {*<tr>
            <td></td>
            <td>
                <input name="rememberme" type="radio" value="1" />&nbsp; Autoprihlásenie, až kým sa neodhlásim<br/>
                <input name="rememberme" type="radio" value="2" />&nbsp; Zapamätať si prihlasovacie meno<br/>
                <input name="rememberme" type="radio" value="3" checked="checked" />&nbsp; Vždy sa pýtať na prihlasovacie údaje<br/>
            </td>
        </tr>*}
        <tr>
            <td>
                <input type="hidden" value="login" name="action" />
                <input type="hidden" value="{$data.toTask}" name="goToTask" />
                <input type="hidden" value="{$data.toTsdr}" name="goToTsdr" />
            </td>
            <td><input type="submit" value="Login" name="login" /></td>
        </tr>
    </table>
</form>